<?php
/*
  功能：投诉建议 model
  作者：cxm
  时间：2019-10-23
*/

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Advise extends BaseModel {
    use SoftDeletes;
    protected $dates = ['deleted_at']; //开启deleted_at
    protected $table='advise';  //绑定表

    /**
     * 用户
     */
    public function user(){
        return $this->hasOne(User::class,'id','user_id');
    }
}